package com.bibrApp.difu.Response;

import java.util.List;

public class SignIVDataResBody {
    /**
     *{
     *     "code":200,
     *     "message":"成功",
     *     "data":{
     *         "blockHash":"000000000000000000110e96d17db9d715979bc4014ccb8c38d35fda628d1bfd",
     *         "fees":"2304",
     *         "blockHeight":627140,
     *         "valueIn":"970894",
     *         "txid":"9c724952ed6058311838b5b48fe7d664a698dbea6f6359208dc12abd6939e014",
     *         "vin":[
     *             {
     *                 "sequence":4294967294,
     *                 "addresses":[
     *                     "3B8XYt36fyyYHjdSeta7ggCDnAZiq2TctQ"
     *                 ],
     *                 "isAddress":true,
     *                 "txid":"c5a34369808c13372df60a7f2220148107b2fa7b75754419d1da7870179d0d9a",
     *                 "hex":"16001469e6ac3b48c1fa7c3da366db286406a485325f5b",
     *                 "value":"970894",
     *                 "n":0,
     *                 "vout":1
     *             }
     *         ],
     *         "blockTime":1587542994,
     *         "hex":"010000000001019a0d9d177078dad1194475757bfab207811420227f0af62d37138c806943a3c5010000001716001469e6ac3b48c1fa7c3da366db286406a485325f5bfeffffff02e61b00000000000017a914154436bf9cd989305dd11c84785ee0c7debbe0d087a8ab0e000000000017a91499de035fdf75c5fad9351727918e6a829fb1cd468702483045022100907b01476c357abc59fa9a88f94c024e90dac4ffd9b9441629e7d0543ea9832c0220266ca8d1362d47a57ebbc652c7b20c257ae858c81e4f4028ecc4cfe2e974b97b012102847211eda4adf59d071e9bdeb4c982a0ebab55767aa7fdcbf6c5e5b4b824152e00000000",
     *         "confirmations":832,
     *         "version":1,
     *         "value":"968590",
     *         "vout":[
     *             {
     *                 "addresses":[
     *                     "33dTq9uY44e1EndZFhWgm1LsdKQRXyWbVC"
     *                 ],
     *                 "isAddress":true,
     *                 "hex":"a914154436bf9cd989305dd11c84785ee0c7debbe0d087",
     *                 "value":"7142",
     *                 "n":0
     *             },
     *             {
     *                 "addresses":[
     *                     "3FibGe5Z1mdejQL4dFyEXQTiLWoAWa6E6T"
     *                 ],
     *                 "isAddress":true,
     *                 "spent":true,
     *                 "hex":"a91499de035fdf75c5fad9351727918e6a829fb1cd4687",
     *                 "value":"961448",
     *                 "n":1
     *             }
     *         ]
     *     }
     * }
     */
    private String blockHash;
    private String fees;
    private int blockHeight;
    private int valueIn;
    private String txid;
    private String blockTime;
    private String hex;
    private int confirmations;
    private int version;
    private String value;

    private List<Vin> vin;
    private List<Vout> vout;

    public String getBlockHash() {
        return blockHash;
    }

    public void setBlockHash(String blockHash) {
        this.blockHash = blockHash;
    }

    public String getFees() {
        return fees;
    }

    public void setFees(String fees) {
        this.fees = fees;
    }

    public int getBlockHeight() {
        return blockHeight;
    }

    public void setBlockHeight(int blockHeight) {
        this.blockHeight = blockHeight;
    }

    public int getValueIn() {
        return valueIn;
    }

    public void setValueIn(int valueIn) {
        this.valueIn = valueIn;
    }

    public String getTxid() {
        return txid;
    }

    public void setTxid(String txid) {
        this.txid = txid;
    }

    public String getBlockTime() {
        return blockTime;
    }

    public void setBlockTime(String blockTime) {
        this.blockTime = blockTime;
    }

    public String getHex() {
        return hex;
    }

    public void setHex(String hex) {
        this.hex = hex;
    }

    public int getConfirmations() {
        return confirmations;
    }

    public void setConfirmations(int confirmations) {
        this.confirmations = confirmations;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public List<Vin> getVin() {
        return vin;
    }

    public void setVin(List<Vin> vin) {
        this.vin = vin;
    }

    public List<Vout> getVout() {
        return vout;
    }

    public void setVout(List<Vout> vout) {
        this.vout = vout;
    }

    public class Vin{
        private int sequence;
        private byte[] addresses;
        private  boolean isAddress;
        private String txid;
        private String hex;
        private String value;
        private int n;
        private int vout;

        public int getSequence() {
            return sequence;
        }

        public void setSequence(int sequence) {
            this.sequence = sequence;
        }

        public byte[] getAddresses() {
            return addresses;
        }

        public void setAddresses(byte[] addresses) {
            this.addresses = addresses;
        }

        public boolean isAddress() {
            return isAddress;
        }

        public void setAddress(boolean address) {
            isAddress = address;
        }

        public String getTxid() {
            return txid;
        }

        public void setTxid(String txid) {
            this.txid = txid;
        }

        public String getHex() {
            return hex;
        }

        public void setHex(String hex) {
            this.hex = hex;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public int getN() {
            return n;
        }

        public void setN(int n) {
            this.n = n;
        }

        public int getVout() {
            return vout;
        }

        public void setVout(int vout) {
            this.vout = vout;
        }
    }
    /**
     * "vout":[
     *      *             {
     *      *                 "addresses":[
     *      *                     "33dTq9uY44e1EndZFhWgm1LsdKQRXyWbVC"
     *      *                 ],
     *      *                 "isAddress":true,
     *      *                 "hex":"a914154436bf9cd989305dd11c84785ee0c7debbe0d087",
     *      *                 "value":"7142",
     *      *                 "n":0
     *      *             },
     *      *             {
     *      *                 "addresses":[
     *      *                     "3FibGe5Z1mdejQL4dFyEXQTiLWoAWa6E6T"
     *      *                 ],
     *      *                 "isAddress":true,
     *      *                 "spent":true,
     *      *                 "hex":"a91499de035fdf75c5fad9351727918e6a829fb1cd4687",
     *      *                 "value":"961448",
     *      *                 "n":1
     *      *             }
     *      *         ]
     */
    public class Vout{
        private byte[] addresses;
        private boolean isAddress;
        private boolean spent;
        private String hex;
        private String value;
        private int n;

        public byte[] getAddresses() {
            return addresses;
        }

        public void setAddresses(byte[] addresses) {
            this.addresses = addresses;
        }

        public boolean isAddress() {
            return isAddress;
        }

        public void setAddress(boolean address) {
            isAddress = address;
        }

        public boolean isSpent() {
            return spent;
        }

        public void setSpent(boolean spent) {
            this.spent = spent;
        }

        public String getHex() {
            return hex;
        }

        public void setHex(String hex) {
            this.hex = hex;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public int getN() {
            return n;
        }

        public void setN(int n) {
            this.n = n;
        }
    }
}
